package com.eascs.workflow.log;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.eascs.workflow.common.entity.sys.LoginLogEntity;
import com.eascs.workflow.common.service.ProxyMongoService;
import com.eascs.workflow.common.service.sys.LoginLogDubboService;
import com.eascs.workflow.common.vo.ModelResult;

@Service
public class LoginLogDubboServiceImpl implements LoginLogDubboService {

	@Autowired
	ProxyMongoService proxyMongoService;

	@Override
	public ModelResult<LoginLogEntity> writeLog(LoginLogEntity loginLogEntity) {
		proxyMongoService.insert(loginLogEntity);
		return new ModelResult<LoginLogEntity>().withModel(loginLogEntity);
	}

}
